package com.jorado.zkconfig;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class ZKPSettings {

    public static String ZOOKEEPER_PATH;
    public static String ZOOKEEPER_ADDRESS;

    static {
        Properties properties = new Properties();
        InputStream in = ZKPSettings.class.getClassLoader().getResourceAsStream("application.properties");
        try {
            properties.load(in);
            ZOOKEEPER_PATH = properties.getProperty("zookeeper.path").trim();
            ZOOKEEPER_ADDRESS = properties.getProperty("zookeeper.address").trim();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
